package zdream.pmfield.stage.action;

import java.util.Objects;

import zdream.pmfield.stage.object.FoeActor;

/**
 * @author Zdream
 * @date 2023-12-03
 * @since 0.0.1
 */
public class DazeAction extends StageAction {
	public final FoeActor foe;

	@Override
	public int getInnerId() {
		return foe.innerId;
	}

	public DazeAction(FoeActor foe) {
		this.foe = Objects.requireNonNull(foe);
	}

	@Override
	public boolean isForDaze() {
		return true;
	}

	@Override
	public DazeAction asDaze() {
		return this;
	}

	@Override
	public DazeAction copy() {
		return new DazeAction(this.foe);
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder(32);
		foe.appendStringWithoutHp(builder);
		builder.append(' ').append("跳过回合");
		return builder.toString();
	}
}
